/*******************************************************************************
 * Copyright (c) 2010, 2030 www.itlaobing.cn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package cn.itlaobing.service;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import cn.itlaobing.dao.UserDao;
import cn.itlaobing.exception.BusinessException;
import cn.itlaobing.model.OrderModel;
import cn.itlaobing.model.UserModel;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;


/** 
 * ClassName: UserService <br/> 
 * Function: 用户业务类 <br/> 
 * date: 2017年11月1日 下午2:40:53 <br/> 
 * 
 * @author wd
 * @version  
 * @since JDK 1.8 
 */
public interface UserService {
	public UserModel authentication(String username,String password) throws BusinessException;


	/*private UserDao ud=new UserDao();
	public UserModel findUserByNameAndPwd(String name,String pwd)throws BusinessException{
		UserModel um=null;
		try {
			um=ud.findUserByNameAndPwd(name, pwd);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			throw new BusinessException(e.getMessage());
		} catch (SQLException e) {
			e.printStackTrace();
			throw new BusinessException(e.getMessage());
		}finally {
			try {
				ud.close();
			} catch (SQLException e) {
				e.printStackTrace();
				throw new BusinessException(e.getMessage());
			}
		}
		
		
		return um;
	}*/
	
}
